<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.selectWidth2{
   width:205px;
}
.shortwidth{
   width:8%;
}

</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar"><span class="color_red">*</span>出质的专利权情况（单位：项）</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo4"
	cellspacing="1">
	<tr>
	<td align="center">合计</td>
	<td align="center">发明</td>
	<td align="center">实用新型</td>
	<td align="center">外观设计</td>
	</tr>
	<tr align="center">
	<td><input  name="proposal/total_patent" id="total_patent" label="出质的专利权情况-->合计" type="text"  class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/total_patent" />"/></td>
	<td><input  name="proposal/total_invention" id="total_invention" label="出质的专利权情况-->发明" onchange="countNum('total_','invention,utility,appearance','patent');" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/total_invention" />"/></td>
	<td><input  name="proposal/total_utility" id="total_utility" label="出质的专利权情况-->实用新型" onchange="countNum('total_','invention,utility,appearance','patent');" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/total_utility" />"/></td>
	<td><input  name="proposal/total_appearance" id="total_appearance" label="出质的专利权情况-->外观设计" onchange="countNum('total_','invention,utility,appearance','patent');" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/total_appearance" />"/></td>
	</tr>
</table>
<br/>
<table  id="tblPatents" cellpadding="0" class="table01" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="5%">选择</th>
						<th class="TblHead" align="center"  width="5%">序号</th>
						<th class="TblHead" align="center"  width="30%">专利名称</th> 
				        <th class="TblHead" align="center"  width="30%">专利号</th> 
						<th class="TblHead" align="center"  width="30%">对应产品名称</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selPatents" >
						</td>
						<td align="center">&nbsp;
							<span name="patents|patent[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text" name="patents|patent[0]|patent_name"  class=" input_text required" maxlength="50" style="width:80%" label="专利名称"/>
						</td>
					    <td>
							<input type="text" name="patents|patent[0]|patent_no"   label="专利号" maxlength="50" style="width:80%" class=" input_text required" />
						</td> 
						<td>
							<input type="text" name="patents|patent[0]|product_name"   label="对应产品名称" maxlength="50" style="width:80%" class=" input_text required" />
						</td> 
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/patents/patent" var="patent">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selPatents" >
						</td>
						<td align="center">&nbsp;
							<span name="patents/patent[${flag}${index}]@seq_no" ><x:out select="$patent/@seq_no"/></span> 
						</td>
						<td>
							<input type="text" name="patents/patent[${flag}${index}]/patent_name"   style="width:80%"  label="专利名称" class=" input_text required" value="<x:out select="$patent/patent_name" />" maxlength="50"/>
						</td>
						<td >
							<input type="text" name="patents/patent[${flag}${index}]/patent_no"  label="专利号" maxlength="50"  style="width:80%"  class=" input_text required" value="<x:out select="$patent/patent_no" />"/>
						</td> 
						<td >
							<input type="text" name="patents/patent[${flag}${index}]/product_name"  label="对应产品名称" maxlength="50" style="width:80%"  class=" input_text required" value="<x:out select="$patent/product_name" />"/>
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
					</table>
					<table width="98%" align="center" id="basicInfo2">
					<tr ><td colspan="6">
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblPatents',99,'出质的专利权情况最多只能填写99条')){addNewRow('tblPatents');showAllDateTag('tblPatents');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblPatents','selPatents')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblPatents','selPatents')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblPatents','出质的专利权情况');">
					</td></tr>
	               </table>	
	  <div class="t_bar"><span class="color_red">*</span>专利权质押合同情况</div>
		<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo5" cellspacing="1">
			<tr>
			<td align="right">合同登记、备案情况：</td>
			<td valign="middle">
			<label> <input type="radio" class="do " id="contract_01" style="vertical-align: middle;" name="contract" label="已登记、备案" value="01" /><span style="vertical-align: middle;">已登记、备案</span></label> 
			<label> <input type="radio" class="do " id="contract_02" style="vertical-align: middle;" name="contract" label="未登记、备案" value="02" /><span style="vertical-align: middle;">未登记、备案</span></label> 
		    <input type="hidden" name="proposal/contract_value" id="contract_value" class="required" value="<x:out select="$xmlData/data/proposal/contract_value" />" label="专利权质押合同情况-->合同登记、备案情况" /> 
			<input type="hidden" name="proposal/contract_name" id="contract_name" value="<x:out select="$xmlData/data/proposal/contract_name" />" /></td>
			<td  align="right">合同登记备案号：</td>
			<td>
				<input name="proposal/contract_no" label="专利权质押合同情况-->合同登记备案号" type="text"  class="input_css required "  maxlength="100" value="<x:out select="$xmlData/data/proposal/contract_no" />"/> 
			</td>
			</tr>
			<tr>
			<td align="right">合同期限：</td>
			<td colspan="3">
			<c:set var="contract_start_date"><x:out select="$xmlData/data/proposal/contract_start_date" /></c:set>
			<cpt:date id="contract_start_date" name="proposal/contract_start_date" value="${contract_start_date}" className="required date  dateCompare:contract_end_date" label="专利权质押合同情况-->合同开始时间" ></cpt:date>
			至
			<c:set var="contract_end_date"><x:out select="$xmlData/data/proposal/contract_end_date" /></c:set>
			<cpt:date id="contract_end_date" name="proposal/contract_end_date" className="required date" label="专利权质押合同情况-->合同结束时间"  value="${contract_end_date}" ></cpt:date> 
			</td>
			</tr>
			<tr>
			<td align="right">出质的专利权评估值（万元）：</td>
			<td><input  name="proposal/patent_evaluation_value"  label="专利权质押合同情况-->出质的专利权评估值" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/patent_evaluation_value" />"/></td>
			<td align="right">出质的专利权质押金额（万元）：</td>
			<td><input  name="proposal/patent_pledge_value"  label="专利权质押合同情况-->出质的专利权质押金额" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/patent_pledge_value" />"/></td>
			</tr>
			<tr>
			<td align="right">专利权评估机构：</td>
			<td colspan="3"><input  name="proposal/evaluated_org"  label="专利权质押合同情况-->专利权评估机构" type="text"  class="input_css required"  maxlength="50" style="width: 680px;" value="<x:out select="$xmlData/data/proposal/evaluated_org" />"/></td>
			</tr>
			<tr>
			<td align="right">专利权质押以外其它担保情况：</td>
			<td colspan="3"><input  name="proposal/guarantee"  label="专利权质押合同情况-->专利权质押以外其它担保情况" type="text"  class="input_css required"  maxlength="50" style="width: 680px;" value="<x:out select="$xmlData/data/proposal/guarantee" />"/></td>
			</tr>
			<tr>
				<td class="t_bar2" colspan="4"><span class="color_red">*</span>专利权质押贷款合同情况</td>
			</tr>
			<tr>
			<td  align="right">贷款银行：</td>
			<td>
				<input name="proposal/lending_bank" label="专利权质押贷款合同情况-->贷款银行" type="text"  class="input_css required"  maxlength="50"  value="<x:out select="$xmlData/data/proposal/lending_bank" />"/> 
			</td>
			<td  align="right">银行帐户类型：</td>
			<td>
				<input name="proposal/bank_account_type" label="专利权质押贷款合同情况-->银行帐户类型" type="text"  class="input_css required"  maxlength="50"  value="<x:out select="$xmlData/data/proposal/bank_account_type" />"/> 
			</td>
			</tr>
			<tr>
			<td  align="right">银行帐号：</td>
			<td>
				<input name="proposal/bank_account" label="专利权质押贷款合同情况-->银行帐号" type="text"  class="input_css required"  maxlength="50" value="<x:out select="$xmlData/data/proposal/bank_account" />"/> 
			</td>
			<td  align="right">贷款金额 （万元）：</td>
			<td>
				<input name="proposal/loan_amount" label="专利权质押贷款合同情况-->贷款金额 " type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/loan_amount" />"/> 
			</td>
			</tr>
			<tr>
			<td align="right">贷款期限：</td>
			<td colspan="3">
			<c:set var="loan_start_date"><x:out select="$xmlData/data/proposal/loan_start_date" /></c:set>
			<cpt:date id="loan_start_date" name="proposal/loan_start_date" value="${loan_start_date}" className="required date  dateCompare:loan_end_date" label="专利权质押贷款合同情况-->贷款开始时间" ></cpt:date>
			至
			<c:set var="loan_end_date"><x:out select="$xmlData/data/proposal/loan_end_date" /></c:set>
			<cpt:date id="loan_end_date" name="proposal/loan_end_date" className="required date" label="专利权质押贷款合同情况-->贷款结束时间"  value="${loan_end_date}" ></cpt:date> 
			</td>
			</tr>
			<tr>
			<td align="right">贷款利息合计（万元）：</td>
			<td><input  name="proposal/loan_interest"  label="专利权质押合同情况-->贷款利息合计" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/loan_interest" />"/></td>
			<td align="right">贷款利率（%）：</td>
			<td><input  name="proposal/loan_interest_rate"  label="专利权质押合同情况-->贷款利率" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/loan_interest_rate" />"/></td>
			</tr>
		</table>
		
		<div class="t_bar"><span class="color_red">*</span>贷款银行意见</div>
		<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo6" cellspacing="1">
			<tr>
				<td>
					<input  name="bankopinion/loan_unit"  label="贷款银行意见-->单位名称" type="text" 
					 class="input_css gray required" disabled style="text-align: right;" 
					 value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />" />																		
					（单位）在我行以专利权质押的方式贷款
					<input  name="bankopinion/loan_mount"  label="贷款银行意见-->贷款金额"  type="text"  class="input_css required"
					onfocus="InitInput.setNumber(this,9,4,2)" 
					 style="text-align: right;border-left: 0 none;border-right: 0 none;border-top: 0 none;" 
					 value="<x:out select="$xmlData/data/bankopinion/loan_mount" />" />
					 万元，借款合同编号为
					  <input maxlength="50" name="bankopinion/loan_contract_no"  label="贷款银行意见-->借款合同编号"  type="text"  class="input_css required "
					 style="text-align: right;border-left: 0 none;border-right: 0 none;border-top: 0 none;" value="<x:out select="$xmlData/data/bankopinion/loan_contract_no" />" />
					 ，借款凭证编号为
					 <input maxlength="50" name="bankopinion/loan_proof_no"  label="贷款银行意见-->借款凭证编号"  type="text"  class="input_css required"
					 style="text-align: right;border-left: 0 none;border-right: 0 none;border-top: 0 none;" value="<x:out select="$xmlData/data/bankopinion/loan_proof_no" />" />
					 ，贷款期限为
					  <c:set var="start_date"><x:out select="$xmlData/data/bankopinion/start_date" /></c:set>
					<cpt:date id="bankopinion_start_date" name="bankopinion/start_date" value="${start_date}" className="shortwidth required date dateCompare:bankopinion_end_date dateCompare:pay_date" label="贷款银行意见-->贷款开始日期"></cpt:date>
					至
					 <c:set var="end_date"><x:out select="$xmlData/data/bankopinion/end_date" /></c:set>
					<cpt:date id="bankopinion_end_date" name="bankopinion/end_date" value="${end_date}" className="shortwidth required date " label="贷款银行意见-->贷款结束日期"></cpt:date>
					，还款结息方式为
				<input maxlength="50" name="bankopinion/loan_payway" label="贷款银行意见-->还款结息方式" type="text"
				  class="input_css required"  maxlength="50"  style="border-left: 0 none;border-right: 0 none;border-top: 0 none;"
				  value="<x:out select="$xmlData/data/bankopinion/loan_payway" />"/> 
					。
					<input  name="bankopinion/loan_unit"  label="贷款银行意见-->单位名称" type="text" 
					 class="input_css gray required" disabled style="text-align: right;" 
					 value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />" />
					（单位）已于
					 <c:set var="pay_date"><x:out select="$xmlData/data/bankopinion/pay_date" /></c:set>
					<cpt:date id="pay_date" name="bankopinion/pay_date" value="${pay_date}" className="shortwidth required date" label="贷款银行意见-->贷款还款日"></cpt:date>	
					还清该借款合同项下的贷款本金和利息，其中支付利息共计
					<input  name="bankopinion/loan_accrual"  label="贷款银行意见-->利息共计"  type="text"  class="input_css required"
					onfocus="InitInput.setNumber(this,9,4,2)" 
					 style="text-align: right;border-left: 0 none;border-right: 0 none;border-top: 0 none;" value="<x:out select="$xmlData/data/bankopinion/loan_accrual" />" />
					万元。
				</td>
		</tr>
		</table>
		
		
		
		
		<%--  <div class="t_bar"><span class="color_red">*</span>专利权质押贷款合同情况</div>
		<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo" cellspacing="1">
			<tr>
			<td  align="right">贷款银行：</td>
			<td>
				<input name="proposal/lending_bank" label="专利权质押贷款合同情况-->贷款银行" type="text"  class="input_css required"  maxlength="50"  value="<x:out select="$xmlData/data/proposal/lending_bank" />"/> 
			</td>
			<td  align="right">银行帐户类型：</td>
			<td>
				<input name="proposal/bank_account_type" label="专利权质押贷款合同情况-->银行帐户类型" type="text"  class="input_css required"  maxlength="50"  value="<x:out select="$xmlData/data/proposal/bank_account_type" />"/> 
			</td>
			</tr>
			<tr>
			<td  align="right">银行帐号：</td>
			<td>
				<input name="proposal/bank_account" label="专利权质押贷款合同情况-->银行帐号" type="text"  class="input_css required"  maxlength="50" value="<x:out select="$xmlData/data/proposal/bank_account" />"/> 
			</td>
			<td  align="right">贷款金额 （万元）：</td>
			<td>
				<input name="proposal/loan_amount" label="专利权质押贷款合同情况-->贷款金额 " type="text"  class="input_css required"  maxlength="50" value="<x:out select="$xmlData/data/proposal/loan_amount" />"/> 
			</td>
			</tr>
			<tr>
			<td align="right">贷款期限：</td>
			<td colspan="3">
			<c:set var="loan_start_date"><x:out select="$xmlData/data/proposal/loan_start_date" /></c:set>
			<cpt:date id="loan_start_date" name="proposal/loan_start_date" value="${loan_start_date}" className="required date  dateCompare:loan_end_date" label="贷款开始时间" ></cpt:date>
			至
			<c:set var="loan_end_date"><x:out select="$xmlData/data/proposal/loan_end_date" /></c:set>
			<cpt:date id="loan_end_date" name="proposal/loan_end_date" className="required date" label="贷款结束时间"  value="${loan_end_date}" ></cpt:date> 
			</td>
			</tr>
			<tr>
			<td align="right">贷款利息合计（万元）：</td>
			<td><input  name="proposal/loan_interest"  label="专利权质押合同情况-->贷款利息合计" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/loan_interest" />"/></td>
			<td align="right">贷款利率（%）：</td>
			<td><input  name="proposal/loan_interest_rate"  label="专利权质押合同情况-->贷款利率" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/loan_interest_rate" />"/></td>
			</tr>
		</table>
 --%>